import { http } from '@/util'

// 申请抖加费用表单提交
export const applyDjUrl = (data) => {
  return http.post('/anchor/platform/manager/dj/apply', data)
}
// 申请抖加详细信息
export const djDetailUrl = (params) => {
  return http.get('/anchor/platform/manager/dj/detail', {
    params
  })
}
// 申请抖加列表
export const djListUrl = (params) => {
  return http.get('/anchor/platform/manager/dj/list', {
    params
  })
}
// 添加投放时信息展示(主播合作历史信息）
export const hostHistoryList = (params) => {
  return http.get('/anchor/platform/manager/dj/agent/info', {
    params
  })
}

// 投放Excel模板下载
export const djDownloadUrl = (params) => {
  return http.get('/anchor/platform/manager/dj/download/template', {
    params
  })
}
// 抖加费用投放
export const djMoneyPutUrl = (data) => {
  return http.post('/anchor/platform/manager/dj/expense/put', data)
}
// 申请报销抖加费用
export const djReimbursementUrl = (data) => {
  return http.post('/anchor/platform/manager/dj/reimbursement', data)
}
// （删除）抖加费申请驳回
export const djRejectedDeleteUrl = (params) => {
  return http.get('/anchor/platform/manager/dj/rejected/delete', {
    params
  })
}
// 抖加费用编辑详情
export const djUpdateDetailUrl = (params) => {
  return http.get('/anchor/platform/manager/dj/update/detail', {
    params
  })
}
// 获取大区
export const areaAllListUrl = (params) => {
  return http.get('/anchor/platform/manager/dj/get/locationconf/all', {
    params
  })
}
// 获取产品信息
export const allProductListUrl = (params) => {
  return http.get('/anchor/platform/manager/dj/get/product/all', {
    params
  })
}

// 申请报销抖加费用选择列表
export const reimbursementSelectUrl = (params) => {
  return http.get('/anchor/platform/manager/dj/reimbursement_select', {
    params
  })
}

// 根据大区获取可报销金额
export const waitReimbursementMoneyUrl = (params) => {
  return http.get('/anchor/platform/manager/dj/get/wait-reimbursement-money', {
    params
  })
}

// 看板
// 产品销售明细列表
export const productSoldListUrl = (params) => {
  return http.get('/anchor/platform/manager/board/product/sold/page', {
    params
  })
}
// 产品销售数量数据统计
export const productSoldStaticNumUrl = (params) => {
  return http.get('/anchor/platform/manager/board/product/sold/quantity/statistic', {
    params
  })
}
// 产品销售金额数据统计
export const productSoldStaticMoneyUrl = (params) => {
  return http.get('/anchor/platform/manager/board/product/sold/amount/statistic', {
    params
  })
}
// 产品上架数据统计
export const productSoldStaticUpUrl = (params) => {
  return http.get('/anchor/platform/manager/board/product/on/statistic', {
    params
  })
}
// 产品套餐详情列表
export const productListDetailUrl = (params) => {
  return http.get('/anchor/platform/manager/board/product/item/page', {
    params
  })
}
// 主播带货明细列表
export const hostListUrl = (params) => {
  return http.get('/anchor/platform/manager/board/agent/goods/detail/page', {
    params
  })
}

// 主播带货数量数据统计
export const hostActionNumStaticUrl = (params) => {
  return http.get('/anchor/platform/manager/board/agent/goods/quantity/statistic', {
    params
  })
}
// 主播带货金额数据统计
export const hostActionMoneyStaticUrl = (params) => {
  return http.get('/anchor/platform/manager/board/agent/goods/amount/statistic', {
    params
  })
}
// 达人营主播合作据统计
export const hostCooperStaticUrl = (params) => {
  return http.get('/anchor/platform/manager/board/agent/td/statistic', {
    params
  })
}
// 主播发片数据统计
export const hostActionVideoStaticUrl = (params) => {
  return http.get('/anchor/platform/manager/board/agent/video/statistic', {
    params
  })
}
// 商家数据统计
export const shopsStaticUrl = (params) => {
  return http.get('/anchor/platform/manager/board/merchant/statistic', {
    params
  })
}
// 商家销售明细列表
export const shopsSaleListUrl = (params) => {
  return http.get('/anchor/platform/manager/board/merchant/sold/page', {
    params
  })
}
// (产品-商家)主播带货详情列表
export const productShopHostListUrl = (params) => {
  return http.get('/anchor/platform/manager/board/product/agent/page', {
    params
  })
}
// 主播-主播带货详情列表
export const hostHostListUrl = (params) => {
  return http.get('/anchor/platform/manager/board/agent/detail/page', {
    params
  })
}
// 商家销售明细-详情列表
export const shopsSaleListDetailUrl = (params) => {
  return http.get('/anchor/platform/manager/board/merchant/detail/page', {
    params
  })
}
// 导入黑名单
export const uploadup = function(data) {
  return http.post('/anchor/platform/manager/dj/expense/put/batch', data, { responseType: 'arraybuffer' })
}
// export const uploadBlackList = function(data) {
//   return http.post('/anchor/platform/manager/agent/black/batch/operate', data, { responseType: 'arraybuffer' })
// }
// 大区站点联动
export const locationArealUrl = (params) => {
  return http.get('/anchor/platform/manager/new/tdBanner/get/location/all', {
    params
  })
}
